const { Send } = require("../../utils/response");
module.exports = (app) => {
    app.use((err, req, res, next) => {
        const code = err.code || -1;
        return Send(res, {
            code,
            message: err.message || "Internal Server Error"
        });
    });
};
